<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="com.chemical.search.model.StructureInfo;" %>

<%@ include file="common/head.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" lang="zh-CN"><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<title>化学分子式检索列表</title>
<link rel="stylesheet" href="${ctx}/common/css/version4.css" type="text/css">
<link rel="stylesheet" href="${ctx}/common/css/import.css" type="text/css" media="screen,print">
<link rel="stylesheet" href="${ctx}/common/css/jquery-ui.css" type="text/css">
<script src="${ctx}/common/js/jquery.js" type="text/javascript"></script>
<script src="${ctx}/common/js/jquery-ui.js" type="text/javascript"></script>
<script type="text/javascript" src="${ctx}/common/js/common.js"></script>
</head>
<body id="catalog">
<div id="wrapper">
    <!-- Header Start -->
<div id="header">
<a href="#"><img src="${ctx}/common/images/logo1.gif" ></a>
</div>
    <!-- Header End -->
    <!-- Main Start -->
 <div id="main">

      <h1>结构式检索</h1>
      <p>如点击结构式或CAS编号，可显示更详细的内容信息。</p>
      <div class="bottun">
          <input type="button" value="重新搜索" class="formbtn_en" onclick="history.go(-1);" />
      </div>
      <% List<StructureInfo> list = (List)request.getAttribute("result");
		   if(list  == null){
		   		out.println("<tr><td><h2><font size=\"4px\" color=\"#FF0000\">Please enter a unempty query!</font></h2></td></tr>");
		   }
		 
		%>
      <div style="text-align:center">
        <table border="0" cellpadding="0" cellspacing="20" id="result" class="graybg clear">
  			<c:forEach items="${result}" var="result" varStatus="s">
  			<c:if test="${s.count%3==1}">
  			<tr>
  			</c:if>
  				<td align="center" valign="center">
    			<p><a href="#"><img src="${ctx}/common/molPNG/${result.picture_Name}" alt="${reslut.si_id }"></a></p>
    			<p>CAS: <a href="${ctx }/search/info/${result.cas_rn }.do">${result.cas_rn }</a></p>
                <p>中文名称: ${result.name_cn}</p>
    			</td>
    		<c:if test="${s.count%3==0}">
			</tr>
			</c:if>
    		<c:set var="v_count" value="${s.count}"/>
	</c:forEach>
	<c:if test="${v_count%3==1}">
		<td></td>
		<td></td>
		</tr>
	</c:if>
	<c:if test="${v_count%3==2}">
		<td><br /></td>
		<tr></tr>
	</c:if>
    </table>
    ${tag }
      </div>
      <div class="pagetop"><a href="${ctx }/search.jsp">返回页首</a></div>

    </div><!-- #main -->

    <hr class="clear" />

  </div><!-- #wrapper -->
</body>
</html>